﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EYangFramework.Domain.Entitys.Entrys
{
    [Table("EYANG_MESSAGE")]
    public class Message : Entity
    {
        [Required]
        [StringLength(40)]
        public virtual string From { get; set; }//消息来源
        [Required]
        [StringLength(500)]
        public virtual string To { get; set; }//消息接收
        [Required]
        [StringLength(500)]
        public virtual string MessageContent { get; set; }//消息文本
        [StringLength(1000)]
        public virtual string MessageData { get; set; }//消息数据
        [StringLength(100)]
        public virtual string DataType { get; set; }//具体消息数据的类型
        [StringLength(500)]
        public virtual string ReadUser { get; set; }//已阅读的用户
        public virtual string ReadTimes { get; set; }//阅读时间
        [StringLength(1)]
        public virtual string IsSendEmail { get; set; }//是否发送邮件,0未发送,1已发送  
    }
}
